package com.zyf.client;

import com.zyf.vo.hosp.ScheduleOrderVo;
import com.zyf.vo.order.SignInfoVo;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/** 医院操作的服务调用接口
 * @author zyf
 * @date 2021年05月31日 15:36
 */
@FeignClient(value = "service-hosp")
@Repository
public interface HospitalFeignClient {

    @ApiOperation(value = "根据排班id，获取预约挂号下单数据")
    @GetMapping("/admin/hosp/hospital/inner/getScheduleOrderVo/{scheduleId}")
    @ApiImplicitParam(name = "scheduleId",value = "排班id")
    ScheduleOrderVo getScheduleOrderVo(@PathVariable("scheduleId") String scheduleId);

    @ApiOperation(value = "根据医院编号，获取医院的签名信息")
    @GetMapping("/admin/hosp/hospital/inner/getSignInfoVo/{hoscode}")
    @ApiImplicitParam(name = "hoscode",value = "医院编号")
    SignInfoVo getSignInfoVo(@PathVariable("hoscode") String hoscode);
}
